package com.cpd.blog.common.annotation;

import java.lang.annotation.*;

/**
 * 缓存注解
 *
 * @author Copydown
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Cache {

    //缓存过期时间
    long expire() default 1 * 60 * 1000;

    //缓存标识 key
    String name() default "";

}